package stdying.handyweibo.injection.module;

import android.app.Application;

import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;
import stdying.handyweibo.AndroidApplication;

/**
 * Description: ApplicationModule
 * Author: liulili
 * Created: 2015-11-21
 */
@Module
public class ApplicationModule {
    private final Application application;

    public ApplicationModule(AndroidApplication application){
        this.application = application;
    }

    @Provides
    @Singleton
    Application provideApplication(){
        return this.application;
    }
}
